class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string :nick_name
      t.string :phone_no
      t.string :weixin_id
      t.string :head_sculpture
      t.timestamps null: false
    end

    add_index :users, :phone_no
  end
end
